import math
n,m=map(int,input().split())
#vc=map(int,input().split())
vc=[]
sum_length=0
for i in map(int,input().split()):
    vc.append(i)
    sum_length+=i
print(vc)
max_meter=sum_length/m
while max_meter>0:
    count=0
    for i in vc:
        count+=math.floor(i/max_meter)
    if count>=m:
        break
    max_meter-=0.01
print(round(max_meter,2))